const path = require("path");
const resolve = dir => path.resolve(__dirname, dir);//引入相对路径解析
module.exports = {
  webpack : {
    alias: {
      "@": resolve("src"),
      "components": resolve("src/components"),
      "network": resolve("src/network"),
      "pages": resolve("src/pages"),
      "router": resolve("src/router"),
      "store": resolve("src/store"),
      "utils": resolve("src/utils"),
      "common": resolve("src/common"),
    }
  }
}
